/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.OCPrinc.Perfect.Conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.OCPrinc.Perfect.ImprStudent;
import za.ac.cput.OCPrinc.Perfect.Student;
import za.ac.cput.OCPrinc.Perfect.StudentImpl;

/**
 *
 * @author Avis
 */
@Configurable
public class AppConfig 
{
   @Bean(name="stud")
   public Student stud()
   {
       return new StudentImpl();
   }
   @Bean(name= "std")
    public Student std()
   {
        return new ImprStudent();
   }
}
